 
-----------------------------
Generating Binomial N samples
p =  0.01 N =  5
Number of Samples =  2500000
  
  Generating Binomial Distribution samples.
  Date and time plus nanoseconds
Thu Jun 19 16:19:19 EDT 2014
313648357
  
[1] 0.01
[1] 5
[1] "Absolute difference of empirical moments from theoretical ones:"
[1] 0.0002116 0.0002580 0.0003580 0.0005784
[1] "Relative difference of empirical moments from theoretical ones:"
[1] 0.004232000 0.004961538 0.006386015 0.008986781
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1] 1.068753e-18 2.367952e-04 2.893141e-04 4.692471e-04
[1] "Relative difference of empirical central moments from theoretical ones (except first):"
[1] 0.004553754 0.005160793 0.007290838
                         test   P.value KS.test
1                  Chi Square 0.7075968  Passed
2            Likelihood Ratio 0.7075968  Passed
3               Freeman-Tukey 0.7402804  Passed
4 Power Divergence (lambda=2) 0.5804340  Passed
 
-----------------------------
Taking first  1000000 samples
p =  0.01 N =  5
 
[1] 0.01
[1] 5
[1] "Absolute difference of empirical moments from theoretical ones:"
[1] 0.0005520 0.0006180 0.0007620 0.0010848
[1] "Relative difference of empirical moments from theoretical ones:"
[1] 0.01104000 0.01188462 0.01359258 0.01685488
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1] -1.665904e-18  5.624953e-04  5.905363e-04  8.328885e-04

	One-sample Kolmogorov-Smirnov test

data:  bin.unif
D = 0.0016, p-value = 0.3816
alternative hypothesis: two-sided

